package com.puti.doctor.domian;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.puti.common.core.annotation.Excel;
import com.puti.common.core.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


/**
 * 商品营销 商品营销对象 goods_marketing
 *
 * @author puti
 * @date 2021-04-21
 */
public class GoodsMarketing extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 营销ID */
    private Long marketingId;

    /** 秒杀名称 */
    @Excel(name = "秒杀名称")
    private String marketingName;

    /** 秒杀起始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "秒杀起始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date marketingStarttime;

    /** 秒杀结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "秒杀结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date marketingEndtime;

    /** 展示图片 */
    @Excel(name = "展示图片")
    private String marketingImg;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date marketingCreatedtime;

    /** 秒杀状态 0：关闭
1：开启 */
    @Excel(name = "秒杀状态 0：关闭 1：开启")
    private Long marketingStatus;

    public void setMarketingId(Long marketingId)
    {
        this.marketingId = marketingId;
    }

    public Long getMarketingId()
    {
        return marketingId;
    }
    public void setMarketingName(String marketingName)
    {
        this.marketingName = marketingName;
    }

    public String getMarketingName()
    {
        return marketingName;
    }
    public void setMarketingStarttime(Date marketingStarttime)
    {
        this.marketingStarttime = marketingStarttime;
    }

    public Date getMarketingStarttime()
    {
        return marketingStarttime;
    }
    public void setMarketingEndtime(Date marketingEndtime)
    {
        this.marketingEndtime = marketingEndtime;
    }

    public Date getMarketingEndtime()
    {
        return marketingEndtime;
    }
    public void setMarketingImg(String marketingImg)
    {
        this.marketingImg = marketingImg;
    }

    public String getMarketingImg()
    {
        return marketingImg;
    }
    public void setMarketingCreatedtime(Date marketingCreatedtime)
    {
        this.marketingCreatedtime = marketingCreatedtime;
    }

    public Date getMarketingCreatedtime()
    {
        return marketingCreatedtime;
    }
    public void setMarketingStatus(Long marketingStatus)
    {
        this.marketingStatus = marketingStatus;
    }

    public Long getMarketingStatus()
    {
        return marketingStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("marketingId", getMarketingId())
            .append("marketingName", getMarketingName())
            .append("marketingStarttime", getMarketingStarttime())
            .append("marketingEndtime", getMarketingEndtime())
            .append("marketingImg", getMarketingImg())
            .append("marketingCreatedtime", getMarketingCreatedtime())
            .append("marketingStatus", getMarketingStatus())
            .toString();
    }
}
